{{--{{ $service->mount->mount_name }}--}}
{{--{{ $service->mount->mount_mobile }}--}}
{{--{{ $service->mount->address }}--}}
{{--{{ $service->mount->machine->name }}--}}

{{--{{ $service->mount->machine->filterone->name }}--}}
{{--{{ $service->mount->machine->filtertwo->name }}--}}
{{--{{ $service->mount->machine->filterthree->name }}--}}
{{--{{ $service->mount->machine->filterfour->name }}--}}
{{--{{ $service->mount->machine->filterfive->name }}--}}

{{--{{ Form::model($page, array('method' => 'put', 'route' => array('services.update', $service->id),'id'=>'pages')) }}--}}
{{--<input type="hidden" name="code" value="{{ $code }}" >--}}
{{--<button type="submit">确认</button>--}}
{{--{{ Form::close() }}--}}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>雷谛科技</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" type="text/css" href="{{ URL::asset('front/style/reset.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ URL::asset('front/style/root.css') }}" />
<link rel="stylesheet" href="{{ URL::asset('front/fonts/font-awesome.min.css') }}">
<script type="text/javascript" src="{{ URL::asset('front/js/jquery.min.js') }}"></script>
<script type="text/javascript" src="{{ URL::asset('front/js/toogle.js') }}"></script>
</head>
<body>

    <!-- start header -->
    	<div id="header">
         <img src="{{ URL::asset('front/img/logo.png') }}" width="120" height="40" alt="logo" class="logo" />
         	<a href="javascript:void(0)" onclick="WeixinJSBridge.call('closeWindow');" class="button back">
         	    <img src="{{ URL::asset('front/img/wechat-button.png') }}" width="17" height="18" alt="icon" />
            </a>
         	<a href="#" class="button create"><img src="{{ URL::asset('front/img/user.png') }}" width="16" height="16" alt="icon"/></a>
        <div class="clear"></div>
</div>
    <!-- end header -->


    <!-- start page -->
    <div class="page">


            <div class="simplebox">
            	<h1 class="titleh">我的工单</h1>
                <div class="content">
                  <div class="person-info">
                  @if($worker != 1)
                    <img src="{{ $service->work->avatar }}" />
                      <h5>{{ $service->work->name }}  </h5>
                      <p><I class="fa fa-mobile fa-lg"></i> {{ $service->work->mobile }} <a href="tel:{{ $service->work->mobile }}">一键拨号</a> <br/>
                        @if($service->all == 1)
                        <I class="fa fa-calendar">付款时间 {{ $service->created_at }}</i>
                        @endif<I class="fa fa-calendar">点评日期 {{ $service->updated_at }}</i>
                        @if($service->rate_id != '')
                        <I class="fa fa-calendar">点评日期 {{ $service->updated_at }}</i>
                        @endif
                    </p>
                  @else
                    <img src="{{ $service->customer->avatar }}" />
                      <h5>{{ $service->customer->name }}  </h5>
                      <p><I class="fa fa-mobile fa-lg"></i> {{ $service->customer->mobile }} <a href="tel:{{ $service->customer->mobile }}">一键拨号</a> <br/>
                        @if($service->all == 1)
                        <I class="fa fa-calendar">付款时间 {{ $service->created_at }}</i>
                        @endif
                        @if($service->rate_id != '')
                        <I class="fa fa-calendar">点评日期 {{ $service->updated_at }}</i>
                        @endif
                        </p>
                  @endif
                  </div>
                {{ Form::model($page, array('method' => 'put', 'route' => array('mounts.update', $mount->id),'id'=>'pages')) }}
                <input type="hidden" name="type" value="{{ $type }}" >
                    <h5>当前装机信息</h5>
                    <ul class="list-plus">
                      <li><b>型号：</b> {{ $service->mount->machine->name }}</li>
                      <li><b>地址：</b> {{ $service->mount->xiaoqu->name }}{{ $service->mount->address }}</li>
                      <li><b>初装日期：</b> {{ $service->mount->created_at }}</li>
                      <li><b>滤芯：</b></li>
                        @foreach($filters as $filter)
                              <li><b></b> {{ $mount->machine->$filter->name }}</li>
                        @endforeach
                    </ul>
                 <hr class="bd_das">
                                     <div class="form-line">
                                       <label class="rt-label pull-left">服务质量：</label>
                                       <div class="rating" class="rate1">
                                       @for($i = 0;$i< $service->rate->form1;$i++)
                                       <i class="fa fa-star"></i>
                                       @endfor
                                       </div>
                                     </div>
                                     <div class="form-line">
                                       <label class="rt-label pull-left">响应速度：</label>
                                       <div class="rating">
                                       @for($i = 0;$i< $service->rate->form1;$i++)
                                       <i class="fa fa-star"></i>
                                       @endfor</div>
                                     </div>
                                     <div class="form-line">
                                       <label class="rt-label pull-left">产品质量：</label>
                                       <div class="rating">
                                       @for($i = 0;$i< $service->rate->form1;$i++)
                                       <i class="fa fa-star"></i>
                                       @endfor
                                       </div>
                                     </div>
                                      <div class="form-line">
                                        <label class="st-label">点评留言</label>
                                        <textarea disabled name="textfield" id="textfield13" style="width:80%;" rows="3" cols="3"  onfocus="if(value == defaultValue){value='';}" onblur="if(!value){value = defaultValue;}">{{ $service->rate->remark }}</textarea>
                                      </div>

                                   </form>
                                   <hr class="bd_das">
                                       <label class="st-label">历史沟通信息</label>

                    @foreach($service->comments as $comment)
                    @if($comment->work_id)

                  <div class="albox informationbox albox_nobg">
                    <b>{{ $service->work->name }} :</b> {{ $comment->remark }}
                  </div>
                    @else
                  <div class="albox succesbox albox_nobg">
                    <b>我 :</b> {{ $comment->remark }}
                  </div>
                    @endif
                  @endforeach

                </div>
      </div>






            <!-- start top button -->
            <div class="topbutton"><a href="#header"><span>Top</span></a></div>
            <!-- end top button -->



            <!-- start footer -->
            <div class="footer">
            © 2014 - 2015  邦顶科技 <a href="http://www.o2bang.com">www.o2bang.com</a> </div>
            <!-- end footer -->




    <div class="clear"></div>
    </div>
    <!-- end page -->
<script type="text/javascript" src="{{ URL::asset('front/js/frame.js') }}"></script>

</body>
</html>


